I had the same problem, but with my controls being turned 90° in th setup screens. Seems like those screens don't care about ES' controller configuration, but that can be easily fixed by connecting the joystick's microswitches in the "right" order on the encoder – if you're not using its single Sanwa port, that is.